//路由菜单


export const menus = [
    {
        path:"/index/home",
        name:"home",
        component:()=>import("@/views/home/index.vue"),
        text:"首页",
        premession:1,
        icon:"el-icon-s-home",
    },
    //热映电影
    {
        path:"/index/movie",
        name:"movie",
        text:"热映电影",
        component:()=>import("@/views/movie/index.vue"),
        icon:"el-icon-s-platform",
        // redirect:"/index/healthy/tiwen",
        premession:1,
        children:[
            {
                path:"/index/movie/list",
                name:"list",
                component:()=>import("@/views/movie/list.vue"),
                icon:"el-icon-s-operation",
                text:"电影列表",
                premession:1,
            },
            {
                path:"/index/movie/pinglun",
                name:"pinglun",
                component:()=>import("@/views/movie/pinglun.vue"),
                icon:"el-icon-mobile",
                text:"热门影评",
                premession:1,
            },
            {
                path:"/index/movie/addping/:id",//写需要传的参数！！！
                name:"addping",
                component:()=>import("@/views/movie/addping.vue"),
                text:"发表评论",
                premession:1,
                hide:true,
            },
        ]
    },
    //购票
    {
        path:"/index/buy",
        name:"buy",
        component:()=>import("@/views/buy/index.vue"),
        text:"购票",
        icon:"el-icon-s-ticket",
        // redirect:"/index/user/list",
        premession:1,
        children:[
            {
                path:"/index/buy/list",
                name:"buylist",
                component:()=>import("@/views/buy/list.vue"),
                text:"上映电影",
                icon:"el-icon-video-camera",
                premession:1,
            },
            {
                path:"/index/buy/car",
                name:"buycar",
                component:()=>import("@/views/buy/car.vue"),
                text:"购物车",
                icon:"el-icon-shopping-cart-1",
                premession:1,
            },
            {
                path:"/index/buy/xiang/:filmId",
                name:"buyxiang",
                component:()=>import("@/views/buy/xiang.vue"),
                text:"电影详情",
                premession:1,
                hide:true,
            },
        ]
    },
    //消息中心
    {
        path:"/index/xiaoxi",
        name:"xiaoxi",
        component:()=>import("@/views/xiaoxi/index.vue"),
        text:"消息中心",
        icon:"el-icon-s-comment",
        // redirect:"/index/xiaoxi/list",
        premession:1,
        children:[
            {
                path:"/index/xiaoxi/myping",
                name:"xiaoximyping",
                component:()=>import("@/views/xiaoxi/myping.vue"),
                text:"我的评论",
                icon:"el-icon-s-comment",
                premession:1,
            },
            {
                path:"/index/xiaoxi/huifu",
                name:"xiaoxihuifu",
                component:()=>import("@/views/xiaoxi/huifu.vue"),
                text:"评论回复",
                icon:"el-icon-bell",
                premession:1,
            },
        ]
    },
    //用户管理
    {
        path:"/index/user",
        name:"user",
        text:"用户管理",
        component:()=>import("@/views/user/index.vue"),
        icon:"el-icon-s-custom",
        // redirect:"/index/user/add",
        premession:4,
        children:[
            {
                path:"/index/user/list",
                name:"userlist",
                component:()=>import("@/views/user/list.vue"),
                text:"影迷列表",
                icon:"el-icon-s-order",
                premession:3,
            },
            {
                path:"/index/user/add",
                name:"useradd",
                component:()=>import("@/views/user/add.vue"),
                text:"用户新增",
                icon:"el-icon-circle-plus-outline",
                premession:3,
            },
        ]
    },
]